package com.shen.JUC.Funiterface;

import java.util.function.Supplier;

public class SupplierTest {
    //Supplier<T> ——供给型接口：没有参数，只有返回值
    public static void main(String[] args) {
        Supplier<Integer> supplier =()-> { return 1024; };
        System.out.println(supplier.get());
    }

}
